package com.eduhzy.ttw.teacher.di.component;

import com.eduhzy.ttw.teacher.di.module.RegisterModule;
import com.eduhzy.ttw.teacher.mvp.contract.RegisterContract;
import com.eduhzy.ttw.teacher.mvp.ui.activity.RegisterActivity;
import com.jess.arms.di.component.AppComponent;
import com.jess.arms.di.scope.ActivityScope;

import dagger.BindsInstance;
import dagger.Component;

@ActivityScope
@Component(modules = RegisterModule.class, dependencies = AppComponent.class)
public interface RegisterComponent {
    void inject(RegisterActivity activity);

    @Component.Builder
    interface Builder {
        @BindsInstance
        RegisterComponent.Builder view(RegisterContract.View view);

        RegisterComponent.Builder appComponent(AppComponent appComponent);

        RegisterComponent build();
    }


}